package com.hdax.dm.rest;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hdax.dm.beans.Scheduler.DmSchedulerSeat;
import com.hdax.dm.beans.Scheduler.DmSchedulerSeatPrice;
import com.hdax.dm.common.api.schedulerControllerApi;
import com.hdax.dm.service.DmSchedulerSeatPriceService;
import com.hdax.dm.service.DmSchedulerSeatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class schedulerRestService implements schedulerControllerApi {

    @Autowired
    private DmSchedulerSeatService dmSchedulerSeatService;

    @Autowired
    private DmSchedulerSeatPriceService dmSchedulerSeatPriceService;

    @Override
    public DmSchedulerSeat dm(Long x, Long y, Integer schedulerId) {
        return dmSchedulerSeatService.selectzuowei(x,y,schedulerId);
    }

    @Override
    public DmSchedulerSeatPrice dmprice(Long schedulerId, String arealevel) {
        return dmSchedulerSeatPriceService.dmprice(schedulerId, arealevel);
    }

    @Override
    public Integer updateschedulerseat(DmSchedulerSeat dmSchedulerSeat) {
        return dmSchedulerSeatService.updateschedulerseat(dmSchedulerSeat);
    }

    @Override
    public Integer updateseat(String orderNo) {
        return dmSchedulerSeatService.updateseat(orderNo);
    }
}
